Tighter Lower Bounds on the Exact Complexity of String Matching
نویسندگان
چکیده
The paper considers the exact number of character comparisons needed to nd all occurrences of a pattern of length m in a text of length n using on-line and general algorithms. For on-line algorithms, a lower bound of about (1 + 9 4(m+1)) n character comparisons is obtained. For general algorithms, a lower bound of about (1 + 2 m+3) n character comparisons is obtained. These lower bounds complement an on-line upper bound of about (1 + 8 3(m+1)) n comparisons obtained recently by Cole and Hariharan. The lower bounds are obtained by nding patterns with interesting combinatorial properties. It is also shown that for some patterns oo-line algorithms can be more eecient than on-line algorithms.
منابع مشابه
Tight Comparison Bounds for the String Prefix-Matching Problem
In the string preex-matching problem one is interested in nding the longest preex of a pattern string of length m that occurs starting at each position of a text string of length n. This is a natural generalization of the string matching problem where only occurrences of the whole pattern are sought. The Knuth-Morris-Pratt string matching algorithm can be easily adapted to solve the string pree...
متن کاملAverage complexity of exact and approximate multiple string matching
We show that the average number of characters examined to search for r random patterns of length m in a text of length n over a uniformly distributed alphabet of size σ cannot be less than Ω(n log σ (rm)/m). When we permit up to k insertions, deletions, and/or substitutions of characters in the occurrences of the patterns, the lower bound becomes Ω(n(k+ log σ (rm))/m). This generalizes previous...
متن کاملOn the Comparison Complexity of the String Prefix-Matching Problem
In this paper we study the exact comparison complexity of the string prefix-matching problem in the deterministic sequential comparison model with equality tests. We derive almost tight lower and upper bounds on the number of symbol comparisons required in the worst case by on-line prefix-matching algorithms for any fixed pattern and variable text. Unlike previous results on the comparison comp...
متن کاملTighter Upper Bounds on the Exact Complexity of String Matching
This paper considers how many character comparisons are needed to find all occurrences of a pattern of length m in a text of length n. The main contribution is to show an upper bound of the form of n + O(n/m) character comparisons, following preprocessing. Specifically, we show an upper bound of n + 8 3(m+1) (n −m) character comparisons. This bound is achieved by an online algorithm which perfo...
متن کاملOn the Eccentric Connectivity Index of Unicyclic Graphs
In this paper, we obtain the upper and lower bounds on the eccen- tricity connectivity index of unicyclic graphs with perfect matchings. Also we give some lower bounds on the eccentric connectivity index of unicyclic graphs with given matching numbers.
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- SIAM J. Comput.
دوره 24 شماره
صفحات -
تاریخ انتشار 1995